package org.idea.spring.aop.cglib.proxy;

import java.lang.reflect.Method;

/**
 * @Author linhao
 * @Date created in 5:45 下午 2021/5/6
 */
public class MyBisMethodInterceptorImpl implements MyMethodInterceptor {


    @Override
    public void doInterceptor(Object sourceObject, Method method, Object[] param, MyMethodProxy myMethodProxy) {
        System.out.println("自定义代理对象 --- before");
        myMethodProxy.invokeSuper(sourceObject,param);
        System.out.println("自定义代理对象 --- after");
    }
}
